//
//  main.m
//  OC1_作业
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Class.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        {
        Person *person1 = [[Person alloc] init];
        person1->_name = @"wangQiang";
        person1->_age = 50;
        
        [person1 sayHello];
        [person1 information];
        }
        
        {
        Teacher *tea1 = [[Teacher alloc] init];
        tea1->_name = @"wangqiang";
        tea1->_age = 60;
        
        [tea1 sayGoodbay];
        [tea1 information];
        }
        
        {
        Deng *deng = [[Deng alloc] init];
        deng->_colour = @"white";
        deng->_age = 30;
        
        [deng information];
        }
        
        {
        Computer *computer = [[Computer alloc] init];
        computer->_type = @"huipu";
        computer->_size = 16;
        
        [computer information];
        }
        
        {
        Pen *pen = [[Pen alloc] init];
        pen->_type = @"chenGhuang";
        pen->_colour = @"black";
        
        [pen information];
        }
        
        {
        Car *car = [[Car alloc] init];
        car->_type = @"benChi";
        car->_shiSu = 170;
        [car information];
        }
        
        {
            Doctor *person1 = [[Doctor alloc] init];
            person1->_name = @"wangQiang";
            person1->_age = 50;
            
            [person1 sayHello];
            [person1 information];
        }
        
        {
        Driver *drive = [[Driver alloc] init];
        drive->_name = @"wangQiang";
        drive->_age = 80;
        
        [drive information];
        }
        
        {
        Apple *apple = [[Apple alloc] init];
        apple->_colour = @"red";
        apple->_weiDao = @"甜";
        
        [apple information];
        }
        
        
        
        
        
        
        /** 作业2  完成蓝欧班级开班仪式流程
         1.早上9.30开班仪式开始.(NSLog(@"开班仪式正式开始"))
         2.刘辉老师做自我介绍.
         3.三名学生做自我介绍
         需求:
         (1)定义一个班级类(LOClassF)
         实例变量:所属培训机构名称、班级名、班级人数、授课老师名字、开班日期.
         方法:初始化(设置学校名字:蓝欧)、集体活动、开班仪式。
         (2)定义一个老师类
         实例变量:名字、性别、年龄、正在教的课程。
         方法:初始化、讲课、布置、验收作业、解决问题、自我介绍。
         (3)定义一个学生类。
         实例变量:姓名、性别、年龄、学号。
         方法:初始化、学习、做作业、提出问题、回答问题、自我介绍。
         注:方法以NSLog输出为主
         
         */
        
        LOClass *loclass = [[LOClass alloc] init];
        [loclass kaiBanYiShi];
        
        Teacher1 *teacher = [[Teacher1 alloc] init];
        teacher->_name = @"刘辉";
        teacher->_sex = 'm';
        teacher->_age = 40;
        teacher->_subject = @"职业规划";
        [teacher ziWoJieShao];
        
        Student1 * stu1 = [[Student1 alloc] init];
        stu1->_name = @"王强";
        stu1->_sex = 'f';
        stu1->_age = 80;
        stu1->_number = 99;
        [stu1 ziWoJieShao];
        
        
 
        
       
        
      
        
        
        
        
        
        
        
        
        
        
    }
    return 0;
}
